using SheLife.Domain.Entities;

namespace SheLife.Domain.Interfaces.Repositories
{
    /// <summary>
    /// 系统角色仓储接口
    /// </summary>
    public interface ISystemRoleRepository : IRepository<SystemRole>
    {
        Task<IEnumerable<SystemRole>> GetByUserIdAsync(Guid userId);
        Task<IEnumerable<SystemRole>> GetByPermissionAsync(string permissionKey);
        Task<bool> HasRoleAsync(Guid userId, string roleKey);
    }
}